<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="nav.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商城后台管理</title>
</head>
<body>
	<script type="text/javascript">
		var adddom = "<table class='table table-bordered table-hover table-condersed'>"
				+ "<tr class='active success info'>"
				+ "<th>编号</th>"
				+ "<th>名称</th>"
				+ "<th>价格</th>"
				+ "<th>分类</th>"
				+ "<th>厂商</th>"
				+ "<th>库存</th>"
				+ "<th colspan=2>操作</th>"
				+ "</tr>"
				+ "<c:forEach items='${Goods }' var='goods'>"
				+ "<tr class='active success info'>"
				+ "<td>${goods.get('id')}</td>"
				+ "<td>${goods.get('gname')}</td>"
				+ "<td>${goods.get('price')}</td>"
				+ "<td>${goods.get('cname')}</td>"
				+ "<td>${goods.get('sname')}</td>"
				+ "<td>${goods.get('reserve')}</td>"
				+ "<td><a href='updategoods.jsp?cname=${goods.get('cname')}&sname=${goods.get('sname')}"
				+"&id=${goods.get('id')}&gname=${goods.get('gname')}&price=${goods.get('price')}&reserve=${goods.get('reserve')}' class='btn'>修改</a>"
			/* 	+ "<td><a href='../GoodsServlet?action=delete&id=${goods.get('id')}' class='btn'>删除</a>" */
				+ "</tr></c:forEach></table>"; 
		var navdom = "<strong class='am-text-danger am-text-lg'>商品信息管理</strong> / <small>GoodsInfo</small>";
		$("#abc").html(navdom);
		$("#xyz").html(adddom);
	</script>
</body>
</html>